<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<link rel="stylesheet" type="text/css" href="${root }/css/header.css">
<link rel="stylesheet" type="text/css" href="${root }/css/common.css">
<header>
	<div class="clearFloat">
		<h1 class="whitelink"><a href="index.do">菜鸭论坛</a></h1>
		<c:if test="${empty loginUser }">
			<div class="whitelink"><a href="login.jsp">登录</a><span>|</span><a href="registerPage.do">注册</a></div>
		</c:if>
		<c:if test="${not empty loginUser }">
			<div class="whitelink">
				<img src="icons/${loginUser.usericon }">
				<a href="user.do?uid=${loginUser.uid }">${loginUser.usermname }</a>
				<a href="UserModel/logout.action">注销</a>
			</div>
		</c:if>
		<div class="searchLink whitelink"><a href="search.jsp">搜索主贴</a></div>
	</div>
</header>